﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2014/3/25 21:45:48
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Sector7.Medical.EntityType;
using Sector7.Framework.DB;

namespace Sector7.Medical.DAO.Standard
{
    /// <summary>
    /// <!-- The description about this class. -->
    /// </summary>
    public class ExamineeDAO : DAOBase<T7_Examinee>, IExamineeDAO
    {
        #region ============================================== Public functions
        public override int CreateAll(List<T7_Examinee> entityList)
        {
            string sql = @"
                INSERT INTO T7_Examinee
                        (EmpId, InterviewId)
                    VALUES
                        (@EmpId, @InterviewId)";

            using (DBHelper helper = new DBHelper())
            {
                return helper.ExecuteBatchNonQuery(sql, entityList, "EmpId", "InterviewId");
            }
        }
        #endregion
    }
}
